for i in range(1,10):
    # print(i,end = ' ')
    for p in range(1,i+1):
        print('%s*%s=%s' %(i,p,i*p),end = ' ')
    print()
